<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>

<body>
	<script>
		// 给定的链接
		var url = "https://guoyingkeji.oss-cn-beijing.aliyuncs.com/shop/2024-01-22/17058911719870a91b67bfea0236efca30d6373a0.jpg";

		// 使用字符串分割和数组操作来获取文件名
		var parts = url.split('/');
		var fileNameWithExtension = parts[parts.length - 1];

		// 使用字符串分割获取文件名和扩展名
		var fileName = fileNameWithExtension.split('.')[1];

		// 输出文件名
		console.log("文件名: " + fileName);
		

	</script>
</body>

</html>